def fibonacci(n):
    i,n1,n2 = 0,1,1
    while i < n:
        yield n1
        n1,n2 = n2,n1+n2
        i+=1
res = fibonacci(50)
fi = [i for i in res]
print(fi)